home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
math
/
alged34.zip
/
MOREFUN.AE
< prev
next >
Wrap
Text File
|
1996-06-06
|
1KB
|
40 lines
"
" ╔════════════════════════════════════════════╗
" ║ More functions that are fun to view. ║
" ╚════════════════════════════════════════════╝
"
" This is an interesting radial mountain range.
sin(2*r(x,y))*sin(5*atan2(y,x)) + rand(z*0.1)
"
" This is the old mexican hat.
sin(3*r(x,y))/r(x,y)
"
" Use 3D polar mode (press 'a') to see a pacifier.
sin(5*x) + 1.2
"
" The sign function can make a nice round table
sign(1 - r(x,y))
"
" An equation graphs the min of two functions: a volcano.
4/(r(x,y) + 0.5) = sign(r(x,y) - 0.5) + 2
"
" View this in 3D and use '2' and 'w' to manipulate z.
(-3*x + y*z)/(x^2 + y^2 + 1)
"
" Cardioid (graph 2D polar, set u=0 and v=0)
1 - cos(t*(0.1*u+1))+0.1*v
"
" Lemniscate (graph 2D polar, set u=0)
cos(2*t*(0.1*u+1))^0.5
"
" These are all the supported math functions:
sin(x) + asin(x) + sinh(x)
cos(x) + acos(x) + cosh(x)
tan(x) + atan(x) + tanh(x)
ln(x) + log(x)
abs(x) + rand(x) + sign(x)
min(x,y) + max(x,y) + r(x,y)
mod(x,y) + atan2(y,x)